home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / cmln0186.arc / DEVELOP3.LTG < prev    next >
Text File  |  1986-12-20  |  640b  |  15 lines

  1.  
  2.                             Listing 3
  3.  
  4. var total                      { declare variable }
  5.  
  6. : average10                    { start definition }
  7.   0 -> total                   { initialize variable }
  8.   1 10 do                      { loop 10 times }
  9.     input                      { put input value on stack }
  10.     total +                    { add to previous total }
  11.     -> total                   { and save new total }
  12.   loop                         { end of loop }
  13.   total print                  { print result }
  14. ;                              { end of definition }
  15.